/*
 * InternalFrameDemo.java
 *
 * Created on November 16, 2007, 2:29 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package moving2;

import javax.swing.JInternalFrame;

import java.awt.event.*;
import java.awt.*;

/**
 *
 * @author Administrator
 */
public class InternalFrameDemo extends JInternalFrame{
    static int openFrameCount = 0;
    static final int xOffset = 30, yOffset = 30;    
    
    /** Creates a new instance of InternalFrameDemo */
    public InternalFrameDemo() {
        super("Document #" + (++openFrameCount), 
              true, //resizable
              true, //closable
              true, //maximizable
              true);//iconifiable

        //...Create the GUI and put it in the window...

        //...Then set the window size or call pack...
        setSize(300,300);

        //Set the window's location.
        setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    }
    
}
